package mpc;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;

public class Mode {
	public final static int STARTING = 1, BRICKING = 2, STEPPING = 3;
	
	int mode, x, y, width, height;
	String text;
	boolean enabled;
	Mode(int mode, String text, int x, int y, int width, int height, boolean enabled){
		this.mode = mode;
		this.text = text;
		this.x = x;
		this.y = y;
		this.width = width;
		this.height = height;
		this.enabled = enabled;
	}
	
	boolean onMe(int xx, int yy){
		return (xx > x) && (xx < x + width) && (yy > y) && (yy < y + height);
	}
	
	void draw(Graphics g){
		if(enabled) g.setColor(Color.red);
		else g.setColor(Color.gray);
		
		g.fillRect(x, y, width, height);
		
		g.setColor(Color.blue);
		g.drawString(text, x + 10, y + 10);
	}
}
